package com.infoDiffusion.bean;
//气象信息
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "weatherinfo")
public class WeatherInfoBean {
	private Integer id;
	private String city;
	private Date refreshDate;
	private String weatherRegime;
	private String temprature;
	private Integer windPower;
	private String dominatWind;
	private String pollutionPower;
	private UserBean userBean;
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	//行政id
	@Column(name="city")
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	
	@Column(name="refresh_date")
	public Date getRefreshDate() {
		return refreshDate;
	}
	
	public void setRefreshDate(Date refreshDate) {
		this.refreshDate = refreshDate;
	}
	@Column(name="weather_regime")
	public String getWeatherRegime() {
		return weatherRegime;
	}
	public void setWeatherRegime(String weatherRegime) {
		this.weatherRegime = weatherRegime;
	}
	@Column(name="temprature")
	public String getTemprature() {
		return temprature;
	}
	
	public void setTemprature(String temprature) {
		this.temprature = temprature;
	}
	@Column(name="wind_power")
	public Integer getWindPower() {
		return windPower;
	}
	public void setWindPower(Integer windPower) {
		this.windPower = windPower;
	}
	@Column(name="dominat_wind")
	public String getDominatWind() {
		return dominatWind;
	}
	public void setDominatWind(String dominatWind) {
		this.dominatWind = dominatWind;
	}
	@Column(name="pollution_power")
	public String getPollutionPower() {
		return pollutionPower;
	}
	public void setPollutionPower(String pollutionPower) {
		this.pollutionPower = pollutionPower;
	}
	
	@ManyToOne
	@JoinColumn(name="user_id")
	public UserBean getUserBean() {
		return userBean;
	}
	public void setUserBean(UserBean userBean) {
		this.userBean = userBean;
	}
	
	
}
